package com.ayit.car.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 汽车品牌表
 * @TableName brands
 */
@TableName(value ="brands")
public class Brands implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 品牌名称
     */
    private String name;

    /**
     * 最热销汽车名(目前多余)
     */
    private String topCarName;

    /**
     * 最热销汽车指导价格区间(目前多余)
     */
    private String topGuidePriceRang;

    /**
     * 品牌图片URL
     */
    private String imageUrl;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    public Long getId() {
        return id;
    }

    /**
     * 主键ID
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 品牌名称
     */
    public String getName() {
        return name;
    }

    /**
     * 品牌名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 最热销汽车名(目前多余)
     */
    public String getTopCarName() {
        return topCarName;
    }

    /**
     * 最热销汽车名(目前多余)
     */
    public void setTopCarName(String topCarName) {
        this.topCarName = topCarName;
    }

    /**
     * 最热销汽车指导价格区间(目前多余)
     */
    public String getTopGuidePriceRang() {
        return topGuidePriceRang;
    }

    /**
     * 最热销汽车指导价格区间(目前多余)
     */
    public void setTopGuidePriceRang(String topGuidePriceRang) {
        this.topGuidePriceRang = topGuidePriceRang;
    }

    /**
     * 品牌图片URL
     */
    public String getImageUrl() {
        return imageUrl;
    }

    /**
     * 品牌图片URL
     */
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Brands other = (Brands) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getTopCarName() == null ? other.getTopCarName() == null : this.getTopCarName().equals(other.getTopCarName()))
            && (this.getTopGuidePriceRang() == null ? other.getTopGuidePriceRang() == null : this.getTopGuidePriceRang().equals(other.getTopGuidePriceRang()))
            && (this.getImageUrl() == null ? other.getImageUrl() == null : this.getImageUrl().equals(other.getImageUrl()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getTopCarName() == null) ? 0 : getTopCarName().hashCode());
        result = prime * result + ((getTopGuidePriceRang() == null) ? 0 : getTopGuidePriceRang().hashCode());
        result = prime * result + ((getImageUrl() == null) ? 0 : getImageUrl().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", topCarName=").append(topCarName);
        sb.append(", topGuidePriceRang=").append(topGuidePriceRang);
        sb.append(", imageUrl=").append(imageUrl);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}